package cn.nawang.ebeim.api.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * TbDatasource entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tb_datasource", catalog = "ebeim")
public class Datasource implements java.io.Serializable {

  // Fields

  private String id;
  private String customerId;
  private String terminalId;
  private String name;
  private String createUserId;
  private Long createTime;
  private String description;
  private String dsType;
  private Integer dsSecurityRank;
  private Integer isOpenLocalBackup;
  private Integer status;
  private String configId;
  private String lmUserId;
  private Long lmTime;
  private Long spaceUsage;
  private Long nextRun;
  private Integer count;
  private Integer currentVersionMajor;
  private Integer currentVersionMinor;
  
  private String bindDeviceName;
  private Integer dsStatus;
 
  @Id
  @Column(name = "id", unique = true, nullable = false, length = 45)
  public String getId() {
    return this.id;
  }

  public void setId(String id) {
    this.id = id;
  }
  
  @Column(name = "ds_security_rank")
  public Integer getDsSecurityRank() {
    return dsSecurityRank;
  }

  public void setDsSecurityRank(Integer dsSecurityRank) {
    this.dsSecurityRank = dsSecurityRank;
  }

  @Column(name = "customer_id")
  public String getCustomerId() {
    return this.customerId;
  }

  public void setCustomerId(String customerId) {
    this.customerId = customerId;
  }

  @Column(name = "terminal_id")
  public String getTerminalId() {
    return this.terminalId;
  }

  public void setTerminalId(String terminalId) {
    this.terminalId = terminalId;
  }

  @Column(name = "name")
  public String getName() {
    return this.name;
  }

  public void setName(String name) {
    this.name = name;
  }

  @Column(name = "create_user_id")
  public String getCreateUserId() {
    return this.createUserId;
  }

  public void setCreateUserId(String createUserId) {
    this.createUserId = createUserId;
  }

  @Column(name = "create_time")
  public Long getCreateTime() {
    return this.createTime;
  }

  public void setCreateTime(Long createTime) {
    this.createTime = createTime;
  }

  @Column(name = "description")
  public String getDescription() {
    return this.description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  @Column(name = "ds_type")
  public String getDsType() {
    return this.dsType;
  }

  public void setDsType(String dsType) {
    this.dsType = dsType;
  }

  @Column(name = "status")
  public Integer getStatus() {
    return this.status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }
  
  @Column(name = "is_open_local_backup")
  public Integer getIsOpenLocalBackup() {
    return isOpenLocalBackup;
  }

  public void setIsOpenLocalBackup(Integer isOpenLocalBackup) {
    this.isOpenLocalBackup = isOpenLocalBackup;
  }

  @Column(name = "config_id")
  public String getConfigId() {
    return this.configId;
  }

  public void setConfigId(String configId) {
    this.configId = configId;
  }

  @Column(name = "lm_user_id")
  public String getLmUserId() {
    return this.lmUserId;
  }

  public void setLmUserId(String lmUserId) {
    this.lmUserId = lmUserId;
  }

  @Column(name = "lm_time")
  public Long getLmTime() {
    return this.lmTime;
  }

  public void setLmTime(Long lmTime) {
    this.lmTime = lmTime;
  }

  @Column(name = "space_usage")
  public Long getSpaceUsage() {
    return spaceUsage;
  }

  public void setSpaceUsage(Long spaceUsage) {
    this.spaceUsage = spaceUsage;
  }

  @Column(name = "next_run")
  public Long getNextRun() {
    return nextRun;
  }

  public void setNextRun(Long nextRun) {
    this.nextRun = nextRun;
  }

  @Column(name = "count")
  public Integer getCount() {
    return count;
  }

  public void setCount(Integer count) {
    this.count = count;
  }

  @Column(name = "current_version_major")
  public Integer getCurrentVersionMajor() {
    return currentVersionMajor;
  }

  public void setCurrentVersionMajor(Integer currentVersionMajor) {
    this.currentVersionMajor = currentVersionMajor;
  }

  @Column(name = "current_version_minor")
  public Integer getCurrentVersionMinor() {
    return currentVersionMinor;
  }

  public void setCurrentVersionMinor(Integer currentVersionMinor) {
    this.currentVersionMinor = currentVersionMinor;
  }

  @Column(name = "bind_device_name")
  public String getBindDeviceName() {
    return bindDeviceName;
  }

  public void setBindDeviceName(String bindDeviceName) {
    this.bindDeviceName = bindDeviceName;
  }

  @Column(name = "ds_status")
  public Integer getDsStatus() {
    return dsStatus;
  }

  public void setDsStatus(Integer dsStatus) {
    this.dsStatus = dsStatus;
  }

  @Override
  public String toString() {
    return "Datasource [id=" + id + ", customerId=" + customerId + ", terminalId=" + terminalId
        + ", name=" + name + ", createUserId=" + createUserId + ", createTime=" + createTime
        + ", description=" + description + ", dsType=" + dsType + ", dsSecurityRank="
        + dsSecurityRank + ", isOpenLocalBackup=" + isOpenLocalBackup + ", status=" + status
        + ", configId=" + configId + ", lmUserId=" + lmUserId + ", lmTime=" + lmTime
        + ", spaceUsage=" + spaceUsage + ", nextRun=" + nextRun + ", count=" + count
        + ", currentVersionMajor=" + currentVersionMajor + ", currentVersionMinor="
        + currentVersionMinor + ", bindDeviceName=" + bindDeviceName + ", dsStatus=" + dsStatus
        + "]";
  }
  
}
